 <div class="main fly-user-main layui-clear">
    <div class="fly-home" style="background-image: url();">
      <img src="__ROOT__/<?php echo $user['face'] ?>">
      <h1>
        <?php echo $user['nickname']; ?>
        <?php if($user['sex']=='0'){ ?>
          <i class="iconfont           icon-nan        "></i>
         <?php }else{ ?>
          <i class="iconfont           icon-nv        "></i>
         <?php   } ?>
        
      </h1>
      <p class="fly-home-info">
        <i class="iconfont icon-zuichun" title="飞吻">
        </i>
        <span style="color: #FF7200;">
          <?php echo $user['kiss']; ?>飞吻
        </span>
        <i class="iconfont icon-shijian">
        </i>
        <span>
         <?php 
           echo Ctime($user['create_time']);
          ?>
          加入
        </span>
        <i class="iconfont icon-chengshi">
        </i>
        <span>
          来自
          <?php 
            if(!empty($user['city'])){
              echo $user['city'];
              //var_dump($_SERVER);
            }else{
              echo "某城";
            }
          ?>
        </span>
      </p>
      <p class="fly-home-sign">
        <?php 
           if(!empty($user['sign'])){
              echo $user['sign'];
            }else{
              echo'（这个人懒得留下签名）';
            }
         ?>
      </p>
    </div>
    <div class="main fly-home-main">
      <div class="layui-inline fly-home-jie">
        <div class="fly-panel">
          <h3 class="fly-panel-title">
            <?php echo $user['nickname']; ?> 最近的提问
          </h3>
          <ul class="jie-row">
              <?php if(empty($que)){ ?>
                 <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                  <span>
                    没有回答任何求解
                  </span>
                </div>
              <?php }else{ ?>
                  <?php foreach ($que as $row): ?>
                    <li>
                      <a href="<?php echo U('home/discuss/index').'?qid='.$row['qid']; ?>" class="jie-title">
                        <?php echo $row['title']; ?>
                      </a>
                      <i>
                        <?php echo Ctime($row['create_time']); ?>
                      </i>
                      <em>
                       <?php echo $row['view_num']; ?>阅/<?php echo $row['answer_num']; ?>答
                      </em>
                    </li>
                  <?php endforeach; ?>
              <?php  } ?>
          </ul>
        </div>
      </div>
      <div class="layui-inline fly-home-da">
        <div class="fly-panel">
          <h3 class="fly-panel-title">
            <?php echo $user['nickname']; ?> 最近的回答
          </h3>
          <ul class="home-jieda">
            <?php if(empty($res)){ ?>
                <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                  <span>
                    没有回答任何问题
                  </span>
                </div>
            <?php }else{ ?>
                <?php foreach ($res as $row): ?>
                  <li>
                    <p>
                      <span>
                        <?php echo Ctime($row['create_time']); ?>
                      </span>
                      在
                      <a href="<?php echo U('home/discuss/index').'?qid='.$row['qid']; ?>">
                        <?php echo $row['title']; ?>
                      </a>
                      中回答：
                    </p>
                    <div class="home-dacontent">
                      <?php echo htmlspecialchars_decode($row['content']); ?>
                    </div>
                  </li>
                <?php endforeach; ?>
            <?php  } ?>
          </ul>
        </div>
      </div>
    </div>
    